export default {
  filters: {
    format (v) {
      const reg = /\d{1,3}(?=(\d{3})+$)/g
      return `${v}`.replace(reg, '$&,')
    },
    money (v) {
      const reg = /\d{1,3}(?=(\d{3})+$)/g
      return '￥ ' + `${v}`.replace(reg, '$&,')
    },
    pct (v) {
      return v * 100 + '%'
    }
  }
}
